package com.lt.flashcard.model.entity;

import com.google.code.morphia.annotations.Embedded;

/**
 * Store information about an item in journey
 * @author ocsen
 *
 */
@Embedded
public class JourneyItem {
	/**
	 * The name of this item
	 */
	private String name;
	/**
	 * The coin of this item
	 */
	private int coin = 0;
	/**
	 * This item is challenge or not
	 */
	private boolean isChallenge = false;
	/**
	 * The small thumbnail displays in the right column of note - journey
	 */
	private String smallThumbnail = "";
	/**
	 * The gray image for small thumbnail
	 */
	private String smallGrayThumbnail = "";
	/**
	 * Position of medium getit on the background
	 */
	private String posMediumGetit = "";
	/**
	 * Position of button getit on the background
	 */
	private String posLargeGetit = "";
	/**
	 * The background image to display in journey page when user gains this item
	 */
	private String journeyImage = "";
	/**
	 * The background image to display in dashboard page when user gains this item
	 */
	private String dashboardImage = "";
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getCoin() {
		return coin;
	}
	
	public void setCoin(int coin) {
		this.coin = coin;
	}
	
	public boolean isChallenge() {
		return isChallenge;
	}
	
	public void setChallenge(boolean isChallenge) {
		this.isChallenge = isChallenge;
	}
	
	public String getSmallThumbnail() {
		return smallThumbnail;
	}
	
	public void setSmallThumbnail(String smallThumbnail) {
		this.smallThumbnail = smallThumbnail;
	}
	
	public String getPosMediumGetit() {
		return posMediumGetit;
	}
	
	public String getPosMediumGetitX() {
		return posMediumGetit.split(",")[0];
	}
	
	public String getPosMediumGetitY() {
		return posMediumGetit.split(",")[1];
	}
	
	public void setPosMediumGetit(String posMediumGetit) {
		this.posMediumGetit = posMediumGetit;
	}
	
	public String getPosLargeGetit() {
		return posLargeGetit;
	}
	
	public String getPosLargeGetitX() {
		return posLargeGetit.split(",")[0];
	}
	
	public String getPosLargeGetitY() {
		return posLargeGetit.split(",")[1];
	}
	
	public void setPosLargeGetit(String posLargeGetit) {
		this.posLargeGetit = posLargeGetit;
	}
	
	public String getSmallGrayThumbnail() {
		return smallGrayThumbnail;
	}

	public void setSmallGrayThumbnail(String smallGrayThumbnail) {
		this.smallGrayThumbnail = smallGrayThumbnail;
	}

	public String getJourneyImage() {
		return journeyImage;
	}

	public void setJourneyImage(String journeyImage) {
		this.journeyImage = journeyImage;
	}

	public String getDashboardImage() {
		return dashboardImage;
	}

	public void setDashboardImage(String dashboardImage) {
		this.dashboardImage = dashboardImage;
	}
}
